package cn.juque.datapipeline.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author nuoka
 */
@Data
public class BaseEntity extends Model<BaseEntity> implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 创建机构
     */
    @TableField(value = "CREATE_ORG_ID", fill = FieldFill.INSERT)
    private String createOrgId;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_USER_ID", fill = FieldFill.INSERT)
    private String createUserId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建日期
     */
    @TableField(value = "CREATE_DATE", fill = FieldFill.INSERT)
    private String createDate;

    /**
     * 更新机构
     */
    @TableField(value = "UPDATE_ORG_ID", fill = FieldFill.INSERT_UPDATE)
    private String updateOrgId;

    /**
     * 更新人
     */
    @TableField(value = "UPDATE_USER_ID", fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 更新日期
     */
    @TableField(value = "UPDATE_DATE", fill = FieldFill.INSERT_UPDATE)
    private String updateDate;

    @Override
    public Serializable pkVal() {
        return null;
    }

}
